import request from "@/utils/request";

// 获取合作伙伴
export const getMerchants = () => {
  return request({
    url: "/tms/dashboard/getMerchants",
    method: "get",
  });
};

// 获取运单状态
export const getWaybillCnt = () => {
  return request({
    url: "/tms/dashboard/cntByShipStatus",
    method: "get",
  });
};

// 获取基础统计，3个数量
export const getBaseCnt = () => {
  return request({
    url: "/tms/dashboard/baseCnt2024",
    method: "get",
  });
};

// 获取分公司统计
export const cntByCompany = () => {
  return request({
    url: "/tms/dashboard/cntByCompany",
    method: "get",
  });
};

//历月总物流数
export const cntByMonth = () => {
  return request({
    url: "/tms/dashboard/cntByMonth",
    method: "get",
  });
};

//6大分类
export const cntByGoods = () => {
  return request({
    url: "/tms/dashboard/cntByGoods",
    method: "get",
  });
};

// 统计发货地
export const selectGroupByFhrTaxNumber = () => {
  return request({
    url: "/tms/dashboard/selectGroupByFhrTaxNumber",
    method: "get",
  });
};
//货运基础信息
export const allBaseInfoCount = () => {
  return request({
    url: "/tms/dashboard/baseInfoCount",
    method: "get",
  });
};

//获取车辆信息
export const getDeviceList = (data) => {
  return request({
    url: "/tms/api/common/deviceList",
    method: "post",
    data,
  });
};

export const waybillChartByMonth = (data) => {
  return request({
    url: "/tms/waybill/report/waybillChartByMonth?proxyId=" + data,
    method: "get",
  });
};

// 司机，车辆，运单，托运人统计
export const baseInfoCount = (data) => {
  return request({
    url: "/tms/waybill/report/baseInfoCount",
    method: "get",
    data,
  });
};
